import request from '@/utils/request'

// 获取命名空间下的版本信息
export function GetVersions(params) {
  return request({
    url: '/Api/Version/GetVersions',
    method: 'get',
    params,
  })
}

// 获取配置历史信息
export function GetConfigInfoHistory(params) {
  return request({
    url: '/Api/Version/GetConfigInfoHistory',
    method: 'get',
    params,
  })
}

// 版本回滚
export function VersionRollBack(data) {
  return request({
    url: '/Api/Version/VersionRollBack',
    method: 'post',
    data,
  })
}
